<?php

//I AM USING THIS CLASS. KEEP IT.
//view any particular course information, make changes and remove it too
class Student_Form_Viewcourse extends Zend_Dojo_Form
{

    /**
     * Form initialization
     *
     * @return void
     */
    public function init()
    {
        $this->setMethod('post');
        $this->setAttribs(array(
            'name'  => 'masterForm2',
        ));
        $this->setDecorators(array(
            'FormElements',
            array('TabContainer', array(
                'id' => 'tabContainer',
                'style' => 'width: 400px; height: 500px;',
                'dijitParams' => array(
                    'tabPosition' => 'top'
                ),
            )),
            'DijitForm',
        ));
 

     $viewCourseForm = new Zend_Dojo_Form_SubForm();
        $viewCourseForm->setAttribs(array(
            'name'   => 'viewTab',
            'legend' => 'View Course ',
            'dijitParams' => array(
                'title' => 'View Course ',
            ),
        ));

               
                ;


        $editCourseForm = new Zend_Dojo_Form_SubForm();
        $editCourseForm->setAttribs(array(
            'name'   => 'editTab',
            'legend' => 'Edit this course',
        ));


        


          $this->addSubForm($viewCourseForm, 'viewTab')
             ->addSubForm($editCourseForm, 'editTab')

            ;





}
}